-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename TypeSignature::NullAry
--> TypeSignature::Nullary
and improve comments
#13817
Conversation
Coercible(Vec<TypeSignatureClass>), | ||
/// The arguments will be coerced to a single type based on the comparison rules. | ||
/// For example, i32 and i64 has coerced type Int64. | ||
/// One or more arguments that can be "compared" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this mean ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs a follow-up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed -- this can be made better. I will attempt a follow up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// | ||
/// Note: | ||
/// - If compares with numeric and string, numeric is preferred for numeric string cases. For example, nullif('2', 1) has coerced types Int64. | ||
/// - If compares with numeric and string, numeric is preferred for numeric string cases. For example, `nullif('2', 1)` has coerced types `Int64`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the reader expected to know/assume that nullif uses signature "Comparable"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actual example direct reader to understand this easily
Thanks @alamb |
/// A function such as `concat` is `Variadic(vec![DataType::Utf8, | ||
/// DataType::LargeUtf8])` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
Maybe it would be more readable to go without DataType:
for type names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in #13840
Thank you for the reviews @jayzhan211 and @findepi -- I think this PR is an improvement over what is on main (though there is still more improvement to be had). Thus merging it in and will work on additional clarifications as a follow up |
Which issue does this PR close?
Signature::nullary
in 44.0.0 easier / less confusing #13763Rationale for this change
While I was making that change I noticed that the
TypeSignature
documentation could be improved as well so I did it at the same timeWhat changes are included in this PR?
TypeSignature::NullAry
-->TypeSignature::Nullary
Are these changes tested?
By CI
Are there any user-facing changes?
The name of an enum has changed, but this has not yet been released, so it isn't a user visible change in my mind